<div class="data_box">
  <div id="idea_rank" class="data_box_rank"><?php echo $Idea->getRank()?></div>
  <div id="idea_title" class="data_box_title">
    <h1> <?php echo $Idea->getName()?> </h1>
  </div>
  <div class="data_box_tags"> 
    <?php foreach( $Idea->getTags() as $tag ): ?>
      <div class="tag"> <?php echo link_to( $tag->getName() , 'sort_by_tag/'.$tag->getId())?> </div>
    <?php endforeach?>
  </div>
  <div id="idea_text" class="data_box_text">
    <p><?php echo sfOutputEscaper::unescape($Idea->getDescription())?></p>
  </div>
  <div class="data_box_owner"> 
    <h2> <?php echo __('Publisher')?>: <?php echo $Idea->getOwner()?> </h2>

  <div class="data_box_concepts"> 
    <h2> <?php echo __('Related Concepts')?> </h2>
    <ul>
    <?php foreach( $Idea->getIdeaConcepts() as $concept ): ?>
      <?php $concept = $concept->getConcept();?>
      <li class="concept"><?php echo $concept->getName()?> <?php echo link_to_function( 'Description' , 'jQuery("#concept_'.$concept->getId().'").toggle();' )?> <?php if($concept->getIsWikipedia()):?><a href="<?php echo $concept->getWikipediaLink()?>">Wikipedia Link</a><?php endif?></li>
      <div id="concept_<?php echo $concept->getId()?>" class="hidden_description"> <p><?php echo $concept->getContent()?></p> </div>
    <?php endforeach?>
    </ul>
  </div>
</div>

<?php echo javascript_tag('jQuery(".hidden_description").toggle();')?>
